(function(lib,config){
	var loadFunc=function(){
        var textAry = config.words.split('|'),identifierAry = config.identifier.split('|'),imglinkAry = config.imglink.split('|');
        textAry[0] = textAry[0] || ''; 
        textAry[1] = textAry[1] || '';
        textAry[2] = textAry[2] || '';
        textAry[3] = textAry[3] || '';
        textAry[4] = textAry[4] || '';
        textAry[5] = textAry[5] || '';
        textAry[6] = textAry[6] || '';
        textAry[7] = textAry[7] || '';
        identifierAry[0] = identifierAry[0] || '';
        imglinkAry[0] = imglinkAry[0] || 'http://rlm1.kmtl120.com/swt/images/renliu_top.jpg';
        imglinkAry[1] = imglinkAry[1] || 'http://rlm1.kmtl120.com/swt/images/renliu_banner1.jpg';
        imglinkAry[2] = imglinkAry[2] || 'http://rlm1.kmtl120.com/swt/images/renliu_banner2.jpg';
        imglinkAry[3] = imglinkAry[3] || 'http://rlm1.kmtl120.com/swt/images/renliu_baner.gif';
        imglinkAry[4] = imglinkAry[4] || 'http://rlm1.kmtl120.com/swt/images/fuke_touxiang.jpg';
        imglinkAry[5] = imglinkAry[5] || 'http://rlm1.kmtl120.com/swt/images/renliu_main.jpg';
        var strVar = [];
            strVar.push("<style>");
            strVar.push("#LRdiv0,#LRdiv1,#LRdiv2{display:none!important;}");
            strVar.push("*{margin:0;padding:0}");
            strVar.push(".renliu_foot input:-moz-placeholder,textarea:-moz-placeholder{color: #fff;}");
            strVar.push(".renliu_foot input:-ms-input-placeholder,textarea:-ms-input-placeholder {color: #fff;}");
            strVar.push(".renliu_foot input::-webkit-input-placeholder,textarea::-webkit-input-placeholder {color: #fff;}");/*top: 0;left: 0;right: 0*/
            strVar.push(".renliu_center{position: fixed;width: 100%;max-width: 640px;min-width: 320px;margin: 0 auto;top: 0;left: 0;right: 0;overflow-y: auto;height: 100%;display:none;background:#fff;z-index:999999999;}");
            strVar.push(".renliu_specialist{padding: 4%;background: #ececec;}");
            strVar.push(".renliu_specialist h3,.renliu_specialist span{font-size: 20px;line-height: 52px;background: url(http://rlm1.kmtl120.com/swt/images/renliu_expert.jpg) no-repeat 1% center #fff;border-radius: 10px;padding-left: 7%;background-size: 5%;}");
            strVar.push(".renliu_specialist span{background: #d0a97c;text-align: center;color: #fff;float: right;display: block;width: 25%;border-radius:0 10px 10px 0;padding: 0;}");
            strVar.push(".renliu_banner{position: relative;margin: 4% 0;}");
            strVar.push(".renliu_top img{width:100%;}");
            strVar.push(".renliu_banner ul img{width:100%;}");
            strVar.push(".renliu_banner ul a img{position: absolute;top: 75%;left: 44%;width: 51%;}");
            strVar.push(".renliu_main{background: url(" + imglinkAry[5] + ") no-repeat;background-size: 100%;padding: 0 4%;height:28%;}");
            strVar.push(".renliu_main h3{font-size: 26px;line-height: 72px;color: #fff;background: url(http://rlm1.kmtl120.com/swt/images/renliu_quiz.png) no-repeat left center;background-size: 5%;padding-left: 6%;}");
            strVar.push(".renliu_main ul li{float: left;font-size: 18px;line-height: 47px;text-align: center;display: block;background: #fff;margin:0 4% 3% 0;width: 22%;border-radius: 10px;}");
            strVar.push(".renliu_main ul li a{color: #7c50b9;}");
            strVar.push(".renliu_main ul li:nth-child(4),.renliu_main ul li:nth-child(8){margin-right: 0;}");
            strVar.push(".renliu_main ul li:nth-child(5),.renliu_main ul li:nth-child(6),.renliu_main ul li:nth-child(7),.renliu_main ul li:nth-child(8){margin-bottom: 5%;}");
            strVar.push("");
            strVar.push(".renliu_mainn{background: #f0eff4;padding-bottom: 25%;}");
            strVar.push(".renliu_mainn h3{font-size: 24px;margin: 3% auto;width: 47%;color: #656565;font-weight: normal;padding-top:3%;}");
            strVar.push(".renliu_mainn h3 span{background: url(http://rlm1.kmtl120.com/swt/images/fuke_slt.png) no-repeat 78% center;margin-top:1.5%;background-size: 1000%;display: block;width: 6%;height: 21px;float: left;}");
            strVar.push(".renliu_line{padding: 0 5%;margin-top: 5%;position: relative;}");
            strVar.push(".renliu_line img{width:12%;float: left;margin-right:5%;}");
            strVar.push(".renliu_line div{font-size: 22px;border-radius: 10px;padding: 3%;background: #fff;display: block;line-height: 30px;margin-left: 16%;}");
            strVar.push(".renliu_line:before{content: \"\";background: url(http://rlm1.kmtl120.com/swt/images/fuke_sanj.png) no-repeat ;width: 25px;height: 25px;display: block;position: absolute;left: 16.9%;background-size: 100%;top: 13%;}");
            strVar.push(".renliu_foot{padding: 2%;background:#fff;position:fixed;bottom:0;left:0;right:0;width:100%;max-width:640px;min-width:320px;margin:0 auto;box-sizing: border-box;}");
            strVar.push(".renliu_foot input{background: #c8c4c3;color: #fff;border: none;line-height: 40px;font-size:22px;border-radius: 10px;width: 63%;margin-right: 5%;float: left;padding-left: 5%;}");
            strVar.push(".renliu_foot::-webkit-input-placeholder{color: #fff;}");
            strVar.push(".renliu_foot span{width: 25%;color: #fff;line-height: 40px;font-size: 22px;text-align: center;display: block;border-radius: 10px;float: left;background:url(http://rlm1.kmtl120.com/swt/images/renliu_send.png) no-repeat 17% center #ff6634;background-size: 18%;}");
            strVar.push("#shake,.renliu_top{position:relative;}");
            strVar.push(".a,.b{position: absolute;width: 15%;height: 100%;left: 0;top: 0;display: block;}");
            strVar.push(".b{left: 85%;}");
            strVar.push("");
            strVar.push("@media screen and (max-width:479px) and (min-width:319px){");
            strVar.push("    .renliu_specialist h3,.renliu_specialist span{font-size: 13px;line-height: 34px;}");
            strVar.push("    .renliu_main{height:19%;}");
            strVar.push("    .renliu_main h3{font-size: 17px;line-height: 38px;}");
            strVar.push("    .renliu_main ul li{font-size: 12px;line-height: 31px;}");
            strVar.push("    .renliu_foot span{background-position: 8% center;background-size: 20%;}");
            strVar.push("    .renliu_mainn h3{font-size: 14px;width:47%;margin: 4% auto;}");
            strVar.push("    .renliu_mainn h3 span{margin-top: -1%;}");
            strVar.push("    .renliu_foot input,.renliu_foot span{font-size: 17px;}");
            strVar.push("    .renliu_line div{font-size: 18px;line-height: 23px;}");
            strVar.push("    .renliu_line:before{background-size:70%;width: 20px;height: 20px;}");
            strVar.push("    .renliu_foot input,.renliu_foot span{line-height: 35px;}");
            strVar.push("    .renliu_foot{padding:5%;}");
            strVar.push("}");
            strVar.push("@media screen and (max-width:639px) and (min-width:480px){");
            strVar.push("    .renliu_specialist h3, .renliu_specialist span{font-size: 16px;line-height: 43px;}");
            strVar.push("    .renliu_main h3{font-size: 21px;line-height: 50px;}");
            strVar.push("    .renliu_main ul li{font-size: 15px;line-height: 39px;}");
            strVar.push("    .renliu_mainn h3{font-size: 18px;width: 45%;}");
            strVar.push("    .renliu_mainn h3 span{margin-top: 1%;}");
            strVar.push("    .renliu_line div{line-height: 25px;font-size: 18px;}");
            strVar.push("    .renliu_foot input,.renliu_foot span{font-size: 18px;line-height: 33px;}");
            strVar.push("}");

            strVar.push("</style>");
            strVar.push("    <section class=\"renliu_center\" id=\"center_close\">");
            strVar.push("        <section class=\"renliu_top\"><img src=\"" + imglinkAry[0] + "\" alt=\"\"><a class=\"a\" onclick=\"fk_close()\"></a><a class=\"b\" onclick=\"fk_close()\"></a></section>");
            strVar.push("        <section class=\"renliu_specialist\">");
            strVar.push("            <h3>" + textAry[0] + "<span id=\"onclk\">换一批</span></h3>");
            strVar.push("        </section>");
            strVar.push("        <section class=\"renliu_banner\">");
            strVar.push("            <ul>");
            strVar.push("                <li><img src=\"" + imglinkAry[1] + "\" alt=\"\" id=\"que\"></li>");
            strVar.push("                <li><img src=\"" + imglinkAry[2] + "\" alt=\"\" id=\"query\" style=\"display: none;\"></li>");
            strVar.push("                <a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\"><img src=\"" + imglinkAry[3] + "\" alt=\"\"></a>");
            strVar.push("            </ul>");
            strVar.push("        </section>");
            strVar.push("        <section class=\"renliu_main\">");
            strVar.push("            <h3>人流问题快速解决，点这里</h3>");
            strVar.push("            <ul>");
            strVar.push("                <li><a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">初次人流者</a></li>");
            strVar.push("                <li><a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">多次人流者</a></li>");
            strVar.push("                <li><a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">怀孕>70天</a></li>");
            strVar.push("                <li><a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">无痛保宫人流</a></li>");
            strVar.push("                <li><a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">在上学做人流</a></li>");
            strVar.push("                <li><a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">在上班做人流</a></li>");
            strVar.push("                <li><a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">怀孕<70天</a></li>");
            strVar.push("                <li><a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">其他</a></li>");
            strVar.push("            </ul>");
            strVar.push("        </section>");
            strVar.push("        <section class=\"renliu_mainn\">");
            strVar.push("            <h3><span></span>" + textAry[1] + "</h3>");
            strVar.push("            <div id=\"shake\">");
            strVar.push("                <section class=\"renliu_line\" style=\"display: none;margin-top: 0;\" id=\"fuke_line\">");
            strVar.push("                    <img src= \"" + imglinkAry[4] + "\" alt= \"\">");
            strVar.push("                    <div>" + textAry[2] + "<font color=\"red\">" + textAry[3] + "</font>" + textAry[4] + "<font color=\"red\">30</font>" + textAry[5] + "</div> ");
            strVar.push("                </section>");
            strVar.push("                <section class=\"renliu_line\" style=\"display: none;\" id=\"fuke_line1\">");
            strVar.push("                    <img src= \"" + imglinkAry[4] + "\" alt= \"\">");
            strVar.push("                    <div>" + textAry[6] + "<font color=\"red\">“人流”</font>" + textAry[7] + "</div> ");
            strVar.push("                </section> ");
            strVar.push("            </div>");
            strVar.push("        </section>");
            strVar.push("        <section class=\"renliu_foot\">");
            strVar.push("            <a href=\"javascript:void(0);\" onClick= \"openZoosUrl(\'" + identifierAry[0] + "\');\">");
            strVar.push("                <input type= \"text\" placeholder=\"丨请在此输入您的问题....\" style=\"color: #fff;\">");
            strVar.push("                <span>发送</span> ");
            strVar.push("            </a>");
            strVar.push("        </section>");
            strVar.push("    </section>");

        var o = document.createElement('section');
        o.innerHTML = strVar.join('');
        while (o.firstElementChild) {
            document.body.appendChild(o.firstElementChild);
        };


        var close1 = document.getElementById("que");
        var close2 = document.getElementById("query");
        var oncloc = document.getElementById("onclk");
        var shake = document.getElementById("shake");
        var close = document.getElementById("center_close");

        oncloc.onclick = function () {
            if (close2.style.display == 'none') {
                close1.style.display = "none";
                close2.style.display = "block";
            } else {
                close1.style.display = "block";
                close2.style.display = "none";
            }
        }
        setTimeout(function () {
            close.style.display = "block";
            var show = document.getElementById("fuke_line");
            var show1 = document.getElementById("fuke_line1");
            if (show.style.display == "none") {
                setTimeout(function () {
                    show.style.display = "block"
                }, 2000)
            }
            if (show1.style.display == "none") {
                setTimeout(function () {
                    show1.style.display = "block"
                }, 4000);
            }
            setTimeout(function () {
                var swtdh_s = setInterval(swtdh_d, 0)
                function swtdh_d() {
                    if (close.scrollTop + close.clientHeight == close.scrollHeight) { clearTimeout(swtdh_s); } else { close.scrollTop++; }
                    close.onmousewheel = function () { clearTimeout(swtdh_s); }
                    close.DOMMouseScroll = function () { clearTimeout(swtdh_s); }
                }
            }, 2800)
        }, config.firsttime*1000);
        fk_close = function () {
            close.style.display = "none";
            setTimeout(function () {
                close.style.display = "block";
            }, config.relapsetime * 1000);
        }
        mfx = function (isWin) {
            var t = 7, z = 3, del = function () { clearInterval(mfx.ID); return mfx };
            del().ID = setInterval(function () {
                var i = t / 180 * Math.PI, x = Math.sin(i) * z, y = Math.cos(i) * z, s = shake.style;
                isWin ? window.moveBy(x, y) : (s.top = x + 'px', s.left = y + 'px');
                if ((t += 90) > 1080) del();
            }, 30);
        }
        window.setInterval("mfx()", 6000);
        
	};
	lib.load(loadFunc);/*执行代码*/
})('{{lib}}', '{{config}}');